//
//  OtherSettingTableViewCell.m
//  UI_AProject_IDaily_Watch
//
//  Created by 刘旭 on 14-10-23.
//  Copyright (c) 2014年 徐继垚. All rights reserved.
//

#import "OtherSettingTableViewCell.h"

@implementation OtherSettingTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        self.backgroundImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 150)];
//        self.backgroundImage.backgroundColor = [UIColor yellowColor];
        [self.backgroundImage setImage:[UIImage imageNamed:@"9.jpg"]];
        [self.contentView addSubview:_backgroundImage];
        
        
        self.userImage = [[UIImageView alloc]initWithFrame:CGRectMake(125, 20, 80, 80)];
        
//        self.userImage.backgroundColor =[UIColor redColor];
        self.userImage.layer.cornerRadius = 40;
        self.userImage.layer.masksToBounds = YES;
        [self.backgroundImage addSubview:_userImage];
        
        
        
        self.userNameLable = [[UILabel alloc]initWithFrame:CGRectMake(105, 110, 120, 30)];
        self.userNameLable.text = @"safasfsafasfas";
        self.userNameLable.textAlignment = NSTextAlignmentCenter;
        self.userNameLable.textColor = [UIColor whiteColor];
        
        [self.backgroundImage addSubview:_userNameLable];
        
        
        
//        self.button1 = [UIButton buttonWithType:UIButtonTypeSystem];
//        [self.button1 setTitle:@"登录" forState:UIControlStateNormal];
//        self.button1.frame = CGRectMake(10, 10, 50, 30);
//       // self.button1.backgroundColor = [UIColor blueColor];
//        [self.contentView addSubview:_button1];
        
//        self.button2 = [UIButton buttonWithType:UIButtonTypeSystem];
//             [self.button2 setTitle:@"登出" forState:UIControlStateNormal];
//        self.button2.frame = CGRectMake(10, 50, 50, 30);
//        //self.button2.backgroundColor = [UIColor blueColor];
//        [self.contentView addSubview:_button2];
        
        
        
        
           }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
